<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文档标题</title>
    <script>

      function capitalize(s) {
        return s.slice(0, 1).toUpperCase() + s.slice(1);
      }

      const str = "i love javascript very much";
      const result = str.split(" ").map(s => capitalize(s)).join(" ");
      alert(result)
    </script>
</head>
<body>
<h1>我的第一个HTML页面</h1>
<p>我的第一个段落。</p>
</body>
</html>
